<extend name="Public/base" />
<block name="body">
    <div class="main-title">
         <h2>新增考勤记录</h2>
    </div>
    <div class="tab-wrap with-padding">
        <div class="node-list">
            <div class="tab-pane in">
                <form action="{:U('statist')}" method="POST" class="form-horizontal auth-form">
                 <input type="hidden" name="id" value="{$data.id}" />
                    <div class="form-item cf">
                        <label class="item-label">单位<span class="check-tips"></span></label>

                        <div class="controls">
                            <select name="unit_id" data-role="select_text" class="form-control" style="width:25%">
                                <option value="0">请选择</option>
                                <volist name="typeList" id="vo">
                                <option value="{$vo.id}" <if condition="$data.type eq 1">selected</if> >{$vo.unit_id}</option>                               
                                </volist>
                            </select>
                             <label class="item-label">用户<span class="check-tips"></span></label>
                        <div class="controls">
                            <select name="uid" data-role="select_text" class="form-control" style="width:25%">
                                <option value="0">请选择</option>
                                <volist name="typeList" id="vo">
                                <option value="{$vo.id}" <if condition="$data.type eq 1">selected</if> >{$vo.uid}</option>                               
                                </volist>
                            </select>
                            <label class="item-label">班级<span class="check-tips"></span></label>

                        <div class="controls">
                            <select name="class_id" data-role="select_text" class="form-control" style="width:25%">
                                <option value="0">请选择</option>
                                <volist name="typeList" id="vo">
                                <option value="{$vo.id}" <if condition="$data.type eq 1">selected</if> >{$vo.class_id}</option>                               
                                </volist>
                            </select>
                                  
                        </div>
                    </div>
                     <label class="item-label">应到人数<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type="text" class="text input-large form-control form-input-width" name="due_num" value="{$data.due_num}" placeholder="请输入应到人数" maxlength="20">
                        </div>
                     <label class="item-label">缺勤人数<span class="check-tips"></span></label>
                        <div class="controls">
                            <input type=    "text" class="text input-large form-control form-input-width" name="miss_num" value="{$data.miss_num}" placeholder="请输入缺勤人数" maxlength="20">
                        </div>
                    <div style="margin-top: 20px;"></div>
                    <button type="submit" class="btn submit-btn ajax-post" target-form="auth-form">{:L("_SURE_WITH_SPACE_")}</button>
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">{:L("_RETURN_WITH_SPACE_")}</button>
                    <!-- <input type="submit" name=""/> -->
                </form>
            </div>
        </div>
    </div>

</block>
<block name="script">
    <script type="text/javascript" src="__STATIC__/qtip/jquery.qtip.min.js"></script>
    <link rel="stylesheet" type="text/css" href="__STATIC__/qtip/jquery.qtip.min.css" media="all">
    <script type="text/javascript" charset="utf-8">
       
        //导航高亮
        highlight_subnav('{:U('index')}');
    </script>
</block>
